// 引入 mongoose
const mongoose = require("mongoose");
// 连接数据库
mongoose.connect('mongodb://localhost/1804');

// 用户模型
const User = mongoose.model("user", {
	username: String,
	password: String,
	email: String
});
// 分类模型
const Fenlei = mongoose.model("fenlei",{
	fenlei_name:String,
	
	fen:String

})

module.exports = {User,Fenlei};